<template>
  <div class="header">
    <div class="header-lt" @click="back">
      <span class="iconfont">&#xe624;</span>
    </div>
    <div class="header-input">
      城市选择
    </div>
  </div>
</template>

<script>
export default {
  name: 'CityHeader',
  methods: {
    back () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~@styles/varibles.styl'
.header{
  line-height: $headerHeight
  display flex
  background $bgColor
  color #fff
  padding-right 0.84rem
  .header-lt{
    width 0.84rem
    float left
    text-align center
  }
  .header-input{
    position relative
    width 100%
    height $headerHeight
    line-height $headerHeight
    text-align center
    color #fff
    overflow hidden
  }
}
</style>
